package reflect;

public class Teacher {
    private String name;

    public void teach() {
        System.out.println("teaching...");
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                '}';
    }
}
